import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsOperationStore {
  operationNotice: string;
  msdsEntprId?: number;
  id?: number;
  storeNotice: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsOperationStoreHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsOperationStore 信息*/
  public addMsdsOperationStore(param: MsdsOperationStore): Observable<number> {
    return this.http.post('/msdsOperationStore', param, {needSuccessInfo: true});
  }

  /*修改msdsOperationStore信息*/
  public editMsdsOperationStore(param: MsdsOperationStore): Observable<void> {
    return this.http.put('/msdsOperationStore', param, {needSuccessInfo: true});
  }

  /*查询msdsOperationStore详情*/
  public getMsdsOperationStoreDetail(msdsEntprId: number): Observable<MsdsOperationStore> {
    return this.http.get('/msdsOperationStore/' + msdsEntprId);
  }


}
